package designpattern.visitor.now;

/**
 * 具体的功能１
 */
public class ConVisitor2 implements Visitor {
    @Override
    public void visitEnterConsumer(EnterpriseConsumer enterpriseConsumer) {
        System.out.println("企业实现功能2 " + enterpriseConsumer.toString());
    }

    @Override
    public void visitPersonConsumer(PersonConsumer personConsumer) {
        System.out.println("个人实现功能2 " + personConsumer.toString());
    }
}
